package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.product.model.BaseCategoryTrademark;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 分类品牌中间表 Mapper 接口
 *
 * @author lhw
 * @since 2022-12-25
 */
@Repository
public interface BaseCategoryTrademarkMapper extends BaseMapper<BaseCategoryTrademark> {
    @Delete("delete bct from gmall_product.base_category_trademark bct where bct.category3_id = #{category3Id} and trademark_id = #{trademarkId}")
    void removeCategoryTrademark(@Param("category3Id") Long category3Id,@Param("trademarkId") Long trademarkId);
}
